/**
 * created by 小卷毛, 2020/10/15
 * Copyright (c) 2020, 416143467@qq.com All Rights Reserved.
 * #                   *********                            #
 * #                  ************                          #
 * #                  *************                         #
 * #                 **  ***********                        #
 * #                ***  ****** *****                       #
 * #                *** *******   ****                      #
 * #               ***  ********** ****                     #
 * #              ****  *********** ****                    #
 * #            *****   ***********  *****                  #
 * #           ******   *** ********   *****                #
 * #           *****   ***   ********   ******              #
 * #          ******   ***  ***********   ******            #
 * #         ******   **** **************  ******           #
 * #        *******  ********************* *******          #
 * #        *******  ******************************         #
 * #       *******  ****** ***************** *******        #
 * #       *******  ****** ****** *********   ******        #
 * #       *******    **  ******   ******     ******        #
 * #       *******        ******    *****     *****         #
 * #        ******        *****     *****     ****          #
 * #         *****        ****      *****     ***           #
 * #          *****       ***        ***      *             #
 * #            **       ****        ****                   #
 */
package com.sgcc.pda.mdrh.task.safe.entity;

import com.sgcc.pda.sdk.entity.BaseEntity;

import java.io.Serializable;

/**
 * 描 述：工作票验证结果（工作计划）
 * 作 者：小卷毛  2020-10-15 16:44
 * 修改描述：
 * 修 改 人：
 * 修改版本：
 */
public class TicketPlanResult extends BaseEntity implements Serializable {

    private VerifyDetail DTS;

    public TicketPlanResult(String code, String msg) {
        super.RT_F = code;
        super.RT_D = msg;
    }

    public VerifyDetail getDTS() {
        return DTS;
    }

    public void setDTS(VerifyDetail DTS) {
        this.DTS = DTS;
    }

    public static class VerifyDetail implements Serializable {

        //验证是否通过
        private boolean checked;
        //是否需要工作计划
        private boolean needWorkPlan;
        //是否需要申请工作票
        private boolean needWorkTicket;
        //是否有工单
        private boolean hasAppNo;
        //工作票状态 01待提交 02待签发 03待许可 04待终结 05已终结 20间断
        private String workTicketState;

        public VerifyDetail(
                boolean checked,
                boolean hasAppNo,
                boolean needWorkPlan,
                boolean needWorkTicket,
                String workTicketState
        ) {
            this.checked = checked;
            this.hasAppNo = hasAppNo;
            this.needWorkPlan = needWorkPlan;
            this.needWorkTicket = needWorkTicket;
            this.workTicketState = workTicketState;
        }

        public boolean isChecked() {
            return checked;
        }

        public void setChecked(boolean checked) {
            this.checked = checked;
        }

        public boolean isNeedWorkPlan() {
            return needWorkPlan;
        }

        public void setNeedWorkPlan(boolean needWorkPlan) {
            this.needWorkPlan = needWorkPlan;
        }

        public boolean isNeedWorkTicket() {
            return needWorkTicket;
        }

        public void setNeedWorkTicket(boolean needWorkTicket) {
            this.needWorkTicket = needWorkTicket;
        }

        public boolean isHasAppNo() {
            return hasAppNo;
        }

        public void setHasAppNo(boolean hasAppNo) {
            this.hasAppNo = hasAppNo;
        }

        public String getWorkTicketState() {
            return workTicketState;
        }

        public void setWorkTicketState(String workTicketState) {
            this.workTicketState = workTicketState;
        }

    }

}
